﻿// Write a program that reads an integer number n from the console and prints all the numbers in the interval [1..n],
// each on a single line.

using System;

class PrintNumbersFrom1toN
{
    static void Main()
    {
        Console.Write("Enter number n : ");
        string numberStr = Console.ReadLine();
        uint number;
        if (uint.TryParse(numberStr, out number))
        {
            if (number == 0)
            {
                Console.WriteLine("Number 0");
            }
            for (int i = 1; i <= number; i++)
            {
                Console.WriteLine("Number {0}", i);
            }
        }
        else
        {
            Console.WriteLine("Your entered number is invalid!");
        }
    }
}
